﻿using RBAC.Domain;
using RBAC.Domain.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.Server.Interface
{
    public interface IUserServer
    {
        Task<List<ProVicnce>> GetProVicnces();

        Task<List<Citys>> GetCity(int id);

        Task<List<District>> GetDistrict(int id);

        Task<int> AddUserInfo(UserInfo userInfo);

        Task<(int totalCount, int pageCount, List<UserDto> list)> GetUserInfos(int pageIndex, int pageSize);

        Task<UserInfo> GetUser(int id);

        Task<int> Upd(UserInfo userInfo);

        Task<int> Del(int id);

        int UserAdds(string? users);
    }
}
